package com.lagou.utils;


public class RequestHolder {

    private static final ThreadLocal<String> threadLocal =  new ThreadLocal();

    public static void add(final String clientIp) {
        threadLocal.set(clientIp);
    }

    public static void remove() {
        threadLocal.remove();
    }

    public static String get() {
        return threadLocal.get();
    }
}
